package com.gxuwz.attendance.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gxuwz.attendance.dao.CourseDao;
import com.gxuwz.attendance.entity.Course;
import com.gxuwz.attendance.service.CourseService;
import com.gxuwz.attendance.vo.Page;

@Service("CourseServiceImpl")
public class CourseServiceImpl implements CourseService{
	
	@Autowired
	private CourseDao courseDao;

	@Override
	public List<Course> list(Course course, Page page) {
		return courseDao.list(course, page);
	}

	@Override
	public boolean delete(String ids) {
		
		return courseDao.delete(ids);
	}

	@Override
	public boolean update(Course course) {
		return courseDao.update(course);
	}

	@Override
	public boolean add(Course course) {
		return courseDao.add(course);
	}

	@Override
	public List<Course> many() {
		return courseDao.many();
	}

}
